package cn.tedu.test;

import cn.tedu.context.Config;
import cn.tedu.demo.Demo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo01 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx =
                new AnnotationConfigApplicationContext(Config.class);
        Demo demo = ctx.getBean("bean", Demo.class);
        System.out.println(demo);
    }
}
